package com.javaspeak.designpatterns.go4.behavioural.observer;

/**
 * Observers are interested in receiving ObservableEvents when a specific
 * happening occurs in the Observable (ApplicationObserver).
 *
 * @author John Dickerson
 */
public interface Observer {

    /**
     * This method is called on each of the subscrived Observers when the
     * Observable executes its notifyObservers( ObservableEvent observableEvent )
     * method.
     *
     * @param observableEvent The ObservableEvent to pass to the Observer
     */
    public void receiveObservableEvent( ObservableEvent observableEvent );
}
